import http from "@/plugins/http";
import login from "@/plugins/login";
import "@/plugins/rem";
import ElementUi from "element-ui";
import _ from "lodash/lang";
import Vue from "vue";
import cookie from "vue-cookies";
import vue_wechart_title from "vue-wechat-title";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./style/styles.scss";

Vue.prototype.$_ = _;
Vue.$_ = _;

Vue.use(cookie);
Vue.use(http);
Vue.use(login);

Vue.use(vue_wechart_title);

Vue.use(ElementUi);
// import { Message, MessageBox, Loading } from "element-ui";

// Vue.use(Loading);

// Vue.prototype.$message = Message;
// /** Show a message box */
// Vue.prototype.$msgbox = MessageBox;

// /** Show an alert message box */
// Vue.prototype.$alert = MessageBox.alert;

// /** Show a confirm message box */
// Vue.prototype.$confirm = MessageBox.confirm;

// /** Show a prompt message box */
// Vue.prototype.$prompt = MessageBox.prompt;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
